//
//  VideoEditFile.h
//  VideoCompositon
//
//  Created by 郭永峰 on 2025/10/16.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
NS_ASSUME_NONNULL_BEGIN

@interface VideoEditFile : NSObject

+ (NSArray<AVMutableCompositionTrack*> *)addUrl:(NSArray<NSURL *> *)urls toComposition:(AVMutableComposition *)composition atTime:(CMTime)time;

+ (AVMutableVideoComposition *)compositionWithTracks:(NSArray<AVMutableCompositionTrack *> *)tracks timeRange:(CMTimeRange)timeRange Opacity:(NSArray<NSNumber *>*)opacities renderSize:(CGSize)renderSize;

+ (void)saveVideoToPhotoLibrary:(NSURL *)videoURL
                     completion:(void (^)(BOOL success, NSError *error))completion;
@end

NS_ASSUME_NONNULL_END
